# Drone CI config for building Jekyll sites with Codeberg.org

Create your Jekyll site on a directory, such as `src`.

```sh
mkdir src
cd src
bundle init
echo 'gem "jekyll"' >> Gemfile
bundle
echo '<h1>Jekyll test page</h1>' > index.html
```

Put a .gitignore on repo root:

```
output/
src/_site/
src/.sass-cache/
src/.jekyll-cache/
src/.jekyll-metadata
```

Put the `.drone.yml` from this directory to the repo root directory on your pages repo. Change:

- `remote` - paste in your repo's ssh url
- `branch` - the branch you want to push the results (usually `main` or `master`)
- `author_name` - commit author (appears on commit info nothing else)
- `author_email` - commit author email (appears on commit info nothing else)

Check [../codeberg-push/README.md](../codeberg-push/README.md#instructions) for details on how to setup ssh keys and stuff. Then commit the changes to see it built.

## Demo

[https://jekyll-test.codeberg.page/](https://jekyll-test.codeberg.page/) - [source repo](https://codeberg.org/jekyll-test/pages)
